<!doctype html>
<html>
<head>
<meta charset="utf-8"/>
<title>{$head[title]}</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta content="{$head[keywords]}" name="keywords" />
<meta content="{$head[description]}" name="description" />
<link href="favicon.ico" rel="shortcut icon" />
<link href="{SKIN_PATH}skin/style.css" rel="stylesheet" type="text/css" />
<link rel="alternate" type="application/rss+xml" title="{$head[title]}" href="/rss.php?rssid={$catid}" />
<script language="JavaScript" src="misc/config.js"></script>
<script language="JavaScript" src="misc/jquery.min.js"></script>
<script language="JavaScript" src="misc/jquery.cookie.js"></script>
<script language="JavaScript" src="misc/common.js"></script>
<script language="JavaScript" src="misc/validator.js"></script>
</head>
<body> 

 
{template 'header.html'}

 
<div class="container"> 


		<div class="home-left">
        	
            
                <ul class="nav nav-pills nav-stacked">
                	<li class="active"><a href=""><i class="icon-home"></i>首页</a></li>
                      <li><a href="{url("?module=explore")}"><i class="icon-heart"></i>发现</a></li>
                      <li><a href="{url("?module=area")}"><i class="icon-map-marker"></i>同城</a></li>
                      <li><a href="{url("?module=tweet")}"><i class="icon-retweet"></i>动弹</a></li>
                      <li><a href="{url("?module=group")}"><i class="icon-comment"></i>小组</a></li>
                      <li><a href="{url("?module=blog")}"><i class="icon-calendar"></i>博客</a></li>
                      <li><a href="{url("?module=vote")}"><i class="icon-tasks"></i>投票</a></li>
                      <li><a href="{url("?module=wiki")}"><i class="icon-list-alt"></i>百科</a></li>  
                      <li><a href="{url("?module=ask")}"><i class="icon-question-sign"></i>问答</a></li>
                      <li><a href="{url("?module=guestbook")}"><i class="icon-book"></i>留言</a></li>
                      <li><a href="{url("?module=movie")}"><i class="icon-film"></i>电影</a></li>
                      <li><a href="{url("?module=search")}"><i class="icon-search"></i>搜索</a></li>
                      <li><a href="{url("?module=app")}"><i class="icon-qrcode"></i>安卓</a></li>
                      <li><a href="{url("?module=codex")}"><i class="icon-asterisk"></i>代码</a></li>
                      <li><a href="{url("?module=digg")}"><i class="icon-fire"></i>置顶</a></li>
                      <li><a href="{url("?module=soft")}"><i class="icon-download-alt"></i>软件</a></li>
                      <li><a href="{url("?module=classad")}"><i class="icon-list"></i>分类</a></li>
                      <li><a href="{url("?module=forum")}"><i class="icon-bold"></i>论坛</a></li>
                      <li><a href="{url("?module=video")}"><i class="icon-facetime-video"></i>视频</a></li>
                      <li><a href="{url("?module=music")}"><i class="icon-music"></i>歌曲</a></li>
                      <li><a href="{url("?module=photo")}"><i class="icon-picture"></i>相册</a></li>
                      <li><a href="{url("?module=goods")}"><i class="icon-shopping-cart"></i>购物</a></li>
                      <li><a href="{url("?module=taobao")}"><i class="icon-text-height"></i>淘宝</a></li>
                </ul>
    
    
    
        </div>
        <div class="home-main">
				
                
                <ul class="nav nav-tabs">
                    <li {if $action=='list' || !$action}class="active"{/if}><a href="?module={$module}&file={$file}&action=list">好友列表</a></li>
                    <li {if $action=='search'}class="active"{/if}><a href="?module={$module}&file={$file}&action=search">查找好友</a></li>
                    <li {if $action=='invite'}class="active"{/if}><a href="?module={$module}&file={$file}&action=invite">邀请好友</a></li>
                    <li {if $action=='request'}class="active"{/if}><a href="?module={$module}&file={$file}&action=request">好友请求</a></li>
                    <li {if $action=='online'}class="active"{/if}><a href="?module={$module}&file={$file}&action=online">在线成员</a></li>
                </ul>
                        
                {if $action=='online'}
                <div class="mod">
                    <ul class="body users">
             
                         {loop $onlines $n $r}
                        <li {if $n%7==0} class="clear" {/if}>
                         <a href="{url("?module=space&userid=$r[userid]")}" title="{$r[username]}"><img src="{thumb(avatar($r[userid]),48,48)}" alt="{$r[username]}"  target="_blank" width="48" height="48"/></a>
                         <a href="{url("?module=space&userid=$r[userid]")}">{nickname($r[userid])}</a>
                         <small>{date('Y-m-d H:i:s',$r[addtime])}</small>
                       
                         <p>&nbsp;</p>
                        </li>
                      {/loop}
                  
                    </ul>  
                </div>
                {elseif $action =='list'}
                	
                    <div class="mod">
                    <ul class="body users">
             
                         {loop $list[info] $n $r}
                        <li {if $n%8==0} class="clear" {/if}>
                         <a href="{url("?module=space&userid=$r[userid]")}" title="{$r[username]}"><img src="{thumb(avatar($r[userid]),48,48)}" alt="{$r[username]}"  target="_blank" width="48" height="48" class="thumbnail"/></a>
                         <a href="{url("?module=space&userid=$r[userid]")}">{nickname($r[userid])}</a>
                         <small>{date('Y-m-d H:i:s',$r[addtime])}</small>
                       
                         <p>&nbsp;</p>
                        </li>
                      {/loop}
                  
                    </ul>  
                    <div class="pagination">
                    	{$list[pages]}
                    </div>
                </div>
                
                {elseif $action=='search'}
                
                
                    {if $dosubmit}
                    	1
                    {else}
                        <div class="mod">
                        <div class="body">
                        
                          <form action="" method="post">
                            <label>性别</label><br/>
                            <select name="">
                              <option>任意</option>
                              <option value="0">男</option>
                              <option value="1">女</option>
                            </select><br/>
                            <label>性别</label><br/>
                            <select name="select">
                              <option>任意</option>
                              <option value="0">单身</option>
                              <option value="1">非单身</option>
                                                    </select>
                            <br/>
                            <label>年龄段</label>
                            <br/>
                            <input type="text" size="10">
                            ~
                            <input name="input" type="text" size="10">
                            <br/>
                            <input name="dosubmit" type="submit" value="查找" class="button button-primary">
                            </form>
                      
                        </div>  
                    </div>
                    {/if}
               	
                
                {elseif $action =='invite'}
                
                	<div class="mod">
                    	<div class="head">
                        我的好友邀请链接
                        </div>
                        <div class="body">
                        	 您可以通过QQ、MSN等IM工具，或者发送邮件，把下面的链接告诉你的好友，邀请他们加入进来。<a href="#">{SITE_URL}?module=home&action=invite&userid={$_userid}</a>
                        </div>
                    </div>
                {/if}
            
            
        </div>
        <div class="home-right">
        	
            	
                <div class="mod">
                  <div class="head"></div>
                  <div class="body">
                    
                    <ul class="nav nav-tabs nav-stacked">
                     <li {if $action==edit} class="active" {/if}><a href="{url("?module=space&userid=$_userid")}"><i class="icon-share"></i>访问博客<br/>{url("?module=space&userid=$_userid")}</a></li>
                    <li {if $action==visitor} class="active" {/if}><a href="{url("?module=member&action=visitor")}">今日来访</a></li>
                    <li {if $file==collect} class="active" {/if}><a href="?module=collect">我的收藏</a></li>
                  </ul>
                  
                  </div>
               </div>
                  
    
        </div>

 
     
</div>

{template 'footer.html'}